﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace BlogAug22.Models
{
    public sealed class Singleton
    {
        private static readonly Singleton instance = new Singleton();
        public List<MyPost> MyPosts { get; set; }
        public List<MyComment> MyComments { get; set; }
        static Singleton()
        {

        }
        private Singleton()
        {
            MyPosts = new List<MyPost>(){
                new MyPost("John Smith", "Today was a good day!", "Yes, today was a grand day, I get to find new land and get lost in it. Yes it's so amazing that I can't even believe it myself. Life is great what can I complain about?"),
                new MyPost("R. Frost", "Hello there!", "Two roads diverged in a yellow wood And sorry I could not travel both And be one traveler, long I stood And looked down one as far as I couldTo where it bent in the undergrowth; "),
                new MyPost("Johnny Bravo","Austin Baby!", " Then took the other, as just as fair, And having perhaps the better claimBecause it was grassy and wanted wear Though as for that the passing thereHad worn them really about the same," ),
                new MyPost("Teddy Roosevelt", "Wow! That's what I said!", "And both that morning equally layIn leaves no step had trodden black.Oh, I kept the first for another day! Yet knowing how way leads on to way I doubted if I should ever come back."),
                new MyPost("James Opiela","Ponies Bronies! Bronies Fer Dayzz!!", "I shall be telling this with a sigh Somewhere ages and ages hence:Two roads diverged in a wood, and I, I took the one less traveled by, And that has made all the difference. ")
            };
            MyComments = new List<MyComment>(){
                new MyComment("Son Ngo","It's great and wonderful.", 0),
                new MyComment("Taaha Chaudhry", "Love the environment.", 1),
                new MyComment("Dean Bunnell", "Such an awesome place!", 2),
                new MyComment("Paul Hume", "It's a great Post!", 3),
                new MyComment("Josh Yi","San Francisco's best Post!", 4),
                new MyComment("James Opiela", "Ponies Bro, we bronies", 5)
            };
        }
        public static Singleton Instance
        {
            get
            {
                return instance;
            }
        }
    }
}